<?php
$left_categorys = array("11"=>"Attractions","12"=>"Tours");


foreach ($left_categorys as $id=>$cat_name)
    {
    $request = new WSRequest(XML_API, "CATEGORY_CONTENT", 0, $id);
    $category= new XMLprocess($request->wsanswer);
//var_dump($request->wsanswer);
//var_dump($category->aItems);
    ?>
    <div class="category_name"><?=$cat_name?></div>
    <?
    foreach ($category->aItems as $tour)
        echo "<img src=\"".SKIN_PATH."img/bullet.png\"><a href=\"book.php?id=".$tour["Code"]."\" >".$tour["Title"]."</a><br>";
    }
?>
    <div class="category_name">&nbsp;</div>
